<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To Turn off Copilot in Windows 11 # Configuration Type - USER # Refer : https://answers.microsoft.com/en-us/windows/forum/all/how-to-uninstall-copilot-i-dont-want-to-disable-it/b301b77d-b879-4433-9979-f8795805e9f1 https://www.thewindowsclub.com/how-to-disable-windows-copilot-in-windows # Note : If the registry was changed but not effective, please advise the user to contact Windows Support. # Applicable: Windows 11 #> $path = "HKCU:\Software\Policies\Microsoft\Windows" $Name = "TurnOffWindowsCopilot" $valuedata = 1 # Check if the registry path exists if (-not (Test-Path $path)) { # Create the registry path if it does not exist New-Item -Path $path -Force Write-Host "Registry path '$path' created." } else { Write-Host "Registry path '$path' already exists." } # Create or update the registry value as a DWORD if (-not (Get-ItemProperty -Path $path -Name $Name -ErrorAction SilentlyContinue)) { New-ItemProperty -Path $path -Name $Name -Value $valuedata -PropertyType DWord -Force Write-Host "Registry value '$Name' created with value $valuedata (DWORD)." } else { Set-ItemProperty -Path $path -Name $Name -Value $valuedata Write-Host "Registry value '$Name' updated to $valuedata." }